package plugin;

import java.util.HashMap;

import javax.swing.JTabbedPane;

public class TabbedTrainDelayPane extends JTabbedPane {
	private static final long serialVersionUID = 1L;
	private MainUI mainUI;
	protected TrainDelayPane trainDelayPane;


	protected TabbedTrainDelayPane(MainUI ui) {
		this.mainUI = ui;		
		this.addTab(" Listen-Ansicht ", this.trainDelayPane = new TrainDelayPane(mainUI));
		this.addTab(" Grid-Ansicht ", trainDelayPane.getGridPane());
		if(!MainUI.GRID_ENABLED) this.setEnabledAt(1, false);
		
	}

	protected void push(HashMap<Integer, Train> zuglist) {
		trainDelayPane.push(zuglist);
	}




}
